/*
 * Copyright (c) 2011 Jean-Marc Perronne
 * Ensisa, 12 rue des Freres Lumieres, F-68093 Mulhouse cedex
 * All rights reserved.
 *
 * The copyright of this software is owned by Werner Randelshofer. 
 * You may not use, copy or modify this software, except in  
 * accordance with the license agreement you entered into with  
 * Jean-Marc Perronne. For details see accompanying license terms. 
 */

package fr.uha.ensisa.jmp.drone.at_commands;

//DEPRECATED from sdk 1.6 !
@Deprecated
public class AtZapCommand extends AbstractAtCommand
{
	public static enum ZapVideoChannel {
		ZAP_CHANNEL_HORI (0),
		ZAP_CHANNEL_VERT (1),
		ZAP_CHANNEL_LARGE_HORI_SMALL_VERT (2),
		ZAP_CHANNEL_LARGE_VERT_SMALL_HORI (3),
		ZAP_CHANNEL_NEXT (4);
		
		private final int value;
		
		ZapVideoChannel(int value) {this.value=value;}
		public int value() {return this.value;}
	} ;
	
	private ZapVideoChannel channel;
	
	public AtZapCommand(ZapVideoChannel channel)
	{
		super("ZAP");
		this.channel = channel;
	}

	public AtZapCommand()
	{
		this(ZapVideoChannel.ZAP_CHANNEL_HORI);
	}

	public void param(ZapVideoChannel channel)
	{
		this.unReady();
		this.channel = channel;
	}

	
	public ZapVideoChannel channel()
	{
		return this.channel;
	}

	@Override
	protected void appendParamaters(StringBuilder builder)
	{
		builder.append(',').append(this.channel.value());
	}

}
